/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package snakesandladders;

import javax.swing.JLabel;

/**
 *
 * @author andres
 */
public class Casilla
{
    JLabel label;
    int numCasilla;
    boolean hayCulebra, hayEscalera;
    int colaCulebra, finEscalera;


    public Casilla(JLabel label, int numCasilla)
    {
        this.numCasilla=numCasilla;
        this.label=label;
        hayCulebra=hayEscalera=false;
        colaCulebra=finEscalera=0;
    }

    public int getColaCulebra() {
        return colaCulebra;
    }

    public void setColaCulebra(int colaCulebra) {
        hayCulebra=true;
        this.colaCulebra = colaCulebra;
    }

    public int getFinEscalera() {
        return finEscalera;
    }

    public void setFinEscalera(int finEscalera) {
        hayEscalera=true;
        this.finEscalera = finEscalera;
    }

    public boolean isHayCulebra() {
        return hayCulebra;
    }


    public boolean isHayEscalera() {
        return hayEscalera;
    }
   

    public JLabel getLabel() {
        return label;
    }

    public void setLabel(JLabel label) {
        this.label = label;
    }

    public int getNumCasilla() {
        return numCasilla;
    }

    public void setNumCasilla(int numCasilla) {
        this.numCasilla = numCasilla;
    }
}
